#pragma once
#include <vector>
#include <string>

class Employee; // 前向声明

class Department {
public:
    explicit Department(const std::string& name);
    const std::string& getName() const;
    void addEmployee(Employee* emp);
    void listEmployees() const;

private:
    std::string name_;
    std::vector<Employee*> employees_;

    friend class Employee; // 声明Employee为友元类[7,8](@ref)
};